<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title>待收货</title>
		<link rel="stylesheet" href="../asset/css/conmom.css" />
		<link rel="stylesheet" href="../asset/css/base.css" />
		<link rel="stylesheet" href="../asset/css/personCenter.css" />
	</head>
	<body>
		<div class="readyCustomer">
			<div class="J_tit">
				<div class="J_tit_div" >
					<div class="title"><i class="iconfont back icon-xiangzuo2" onclick="window.history.go(-1)"></i>这里显示厂家名字</div>
				</div>
			</div>
			<div class="ready-cust-div">
				<div>
					<div class="orderStock">
						<div class="orderStockHead clearfix">
							<span class="checkBox getGoods fl" data-id="1"><i class="icon iconfont icon-gougou"></i></span>
							<p class="fl">补主体圈</p>
							<span class="parts fr">配件</span>
						</div>
						<div class="orderStockBody clearfix">
							<div class="orderLeft fl">
								<p>型号：X26015</p>
								<p>数量：1件</p>
							</div>
							<div class="orderRight fr">
								<img src="../asset/img/1.jpg" width="100%" height="100%"/>
							</div>
						</div>
						<div class="orderContacts">
							<div class="avatar--msg-div clearfix">
								<span>客户名字</span>
								<span>业务员名字</span>
							</div>
						</div>
					</div>
					<div class="orderStock">
						<div class="orderStockHead clearfix">
							<span class="checkBox getGoods fl" data-id="1"><i class="icon iconfont icon-gougou"></i></span>
							<p class="fl">下单时间：2017-10-15 15:13:14</p>
						</div>
						<div class="orderStockBody clearfix">
							<div class="orderLeft fl">
								<p>型号：X26015</p>
								<p>现货：1个</p>
							</div>
							<div class="orderRight fr">
								<img src="../asset/img/1.jpg" width="100%" height="100%"/>
							</div>
						</div>
						<div class="orderContacts">
							<div class="avatar--msg-div clearfix">
								<span>Tc657</span>
								<span>客户名字</span>
								<span>业务员名字</span>
							</div>
						</div>
					</div>
					<div class="orderStock">
						<div class="orderStockHead clearfix">
							<span class="checkBox getGoods fl" data-id="2"><i class="icon iconfont icon-gougou"></i></span>
							<p class="fl">下单时间：2017-10-15 15:13:14</p>
						</div>
						<div class="orderStockBody clearfix">
							<div class="orderLeft fl">
								<p>型号：X26015</p>
								<p>现货：1个</p>
							</div>
							<div class="orderRight fr">
								<img src="../asset/img/1.jpg" width="100%" height="100%"/>
							</div>
						</div>
						<div class="orderContacts">
							<div class="avatar--msg-div clearfix">
								<span>Tc657</span>
								<span>客户名字</span>
								<span>业务员名字</span>
							</div>
						</div>
					</div>
					<div class="orderStock">
						<div class="orderStockHead clearfix">
							<span class="checkBox getGoods fl" data-id="3"><i class="icon iconfont icon-gougou"></i></span>
							<p class="fl">下单时间：2017-10-15 15:13:14</p>
						</div>
						<div class="orderStockBody clearfix">
							<div class="orderLeft fl">
								<p>型号：X26015</p>
								<p>现货：1个</p>
							</div>
							<div class="orderRight fr">
								<img src="../asset/img/1.jpg" width="100%" height="100%"/>
							</div>
						</div>
						<div class="orderContacts">
							<div class="avatar--msg-div clearfix">
								<span>Tc657</span>
								<span>客户名字</span>
								<span>业务员名字</span>
							</div>
						</div>
					</div>
					<div class="orderStock">
						<div class="orderStockHead clearfix">
							<span class="checkBox getGoods fl" data-id="4"><i class="icon iconfont icon-gougou"></i></span>
							<p class="fl">下单时间：2017-10-15 15:13:14</p>
						</div>
						<div class="orderStockBody clearfix">
							<div class="orderLeft fl">
								<p>型号：X26015</p>
								<p>现货：1个</p>
							</div>
							<div class="orderRight fr">
								<img src="../asset/img/1.jpg" width="100%" height="100%"/>
							</div>
						</div>
						<div class="orderContacts">
							<div class="avatar--msg-div clearfix">
								<span>Tc657</span>
								<span>客户名字</span>
								<span>业务员名字</span>
							</div>
						</div>
					</div>
					<button class="readySubmit">提交</button>
				</div>
			</div>
			<div class="tip" style="opacity: 0;"></div>
		</div>
	</body>
	<script type="text/javascript" src="../public/jquery.min.js" ></script>
	<script>
		$(document).on("click",".getGoods",function(){
			if($(this).hasClass("active")){
				$(this).removeClass("active");
			}else{
				$(this).addClass("active");
			}
		});
		$(document).on("click",".readySubmit",function(){
			var dataId="";
			$(".getGoods").each(function(){
				if($(this).hasClass("active")){		
					dataId+=$(this).attr("data-id")+",";
				}
			});
			if(dataId==""){
				showTip("请至少提交一项");
			}else{
				alert("提交成功");
			}
			
		});
		function showTip(str){
		$(".tip").html(str);
		$(".tip").css("opacity",1);
		setTimeout(function(){
			$(".tip").html("");
			$(".tip").css("opacity",0);
		},1000);
	}
	</script>
</html>
